import request from '@/utils/request'

export const loginAPI = data => {
  return request({
    url: '/v1_0/authorizations',
    method: 'post',
    data
  })
}

export const userInfoAPI = () => {
  return request({
    url: '/v1_0/user/profile'
  })
}

export const changeInfoAPI = data => {
  return request({
    url: '/v1_0/user/profile',
    method: 'patch',
    data
  })
}

export const editPhotoAPI = data => {
  return request({
    url: '/v1_0/user/photo',
    method: 'patch',
    data
  })
}

// 用户关注列表接口
export const  userFollowingsAPI = (params) => {
  return request({
    url:'/v1_0/user/followings',
    params
  })
}
